accessibility
Macromedia Logo Upper Navigation Bar
 Help
Lower Navigation Bar
ProductsSupportDesigner DeveloperDownloadsStoreInternationalSite MapCompany
Home > Products > Flash > Support > TechNote Index
Macromedia Flash Support Center - TechNotes

Error using getFontList() action

Product: Flash
Platform: All
Versions: MX
ID: 16310
How useful was this document?
less more

1

2

3

4

5

How can the document be improved? (300 characters or less - you will not receive a reply.)

Issue
When using the getFontList() action to create an array of available fonts, the output window displays an error stating the array is undefined.

Reason
Most of these errors are caused by TextField.getFontList() not being associated with a TextField Object.

Solution
The correct syntax to create an array of available system fonts is:

myArray = newArray();
newArray = TextField.getFontList().

Note the addtion of the TextField object container.



Last updated: January 17, 2003
Keywords: font, array, undefined, getFontList, list
Created: May 14, 2002
©1995-2003 Macromedia, Inc. All rights reserved.
Use of this website signifies your agreement to the Terms of Use.
Privacy | Site Map
| Contact us | Accessibility | Report Piracy